package 数据结构下

object MapOperateDemo02 {
  def main(args: Array[String]): Unit = {
    val list = List(1, 2, 3, 4)

    val value = list.map(multiple)
    println(value)

  }

  def multiple(n: Int): Int = {
    n * 2
  }

}
